import request from '@/plugins/request';
// 部门列表
export function departmentList(data) {
    return request({
      url: "/v1/department/list",
      method: "get",
      params: data,
    });
}
  
  //新增部门
export function createDepartment(data) {
    return request({
        url: "/v1/department/create",
        method: "post",
        data,
    });
}

//删除部门
export function deleteDepartment(data) {
    return request({
        url: "/v1/department/delete",
        method: "post",
        data,
    });
}

// 部门详情
export function departmentInfo(data) {
    return request({
      url: "/v1/department/info",
      method: "get",
      params: data,
    });
}
  
//编辑部门
export function updateDepartment(data) {
    return request({
        url: "/v1/department/update",
        method: "post",
        data,
    });
}